package com.xxadmin.usercenter.dao;

import com.github.pagehelper.Page;
import com.xxadmin.usercenter.domain.OauthClientDetails;
import com.xxadmin.usercenter.dto.OauthClientDetailsDTO;
import com.xxadmin.usercenter.dto.OauthUserQueryDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

@Mapper
@Service
public interface OauthClientDetailsDao {

    /**
     * 新增 OauthClientDetails
     *
     * @param record  新增记录
     *
     * @return
     */
    int insertSelective(OauthClientDetails record);

    /**
     * 查询 OauthClientDetails 信息
     * @param clientId  主键
     *
     * @return
     */
    OauthClientDetails selectByPrimaryKey(String clientId);

    /**
     * 修改 OauthClientDetails
     *
     * @param record    更新记录
     * @return
     */
    int updateByPrimaryKeySelective(OauthClientDetails record);

    /**
     * 查询列表信息
     *
     * @param queryDTO
     * @return
     */
    Page<OauthClientDetailsDTO> selectOauthUserDetail(@Param("query") OauthUserQueryDTO queryDTO);
}
